(function (root, factory) {
  console.log("立即执行");
  if (
    typeof exports === "object" &&
    typeof module !== "undefined" &&
    module.exports
  ) {
    module.exports = factory();
  } else if (typeof define === "function" && define.amd) {
    define(["jquery"], factory);
  } else {
    root["jquery"] = factory;
  }
})(this, function () {
  console.log("factory function header");
  return function (params) {
    console.log("return factory", params);
  };
});

console.log(this);
